package com.nanhai.buddhist.college.module.study.controller.teacher.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

import static com.nanhai.buddhist.college.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @author AKai
 * @date 2022/8/24
 */
@Data
public class AttendanceManagementAddReq {


    @ApiModelProperty(value = "考勤id", required = true)
    private String id;

    @ApiModelProperty(value = "考勤用户信息(关联用户表)", required = true)
    private String userId;

    @ApiModelProperty(value = "请假事由id", required = true)
    @NotEmpty(message = "请假事由id不能为空")
    private String reasonId;

    @ApiModelProperty(value = "请假天数(单位:天)", required = true)
    @NotNull(message = "请假天数(单位:天)不能为空")
    private Double leaveDays;

    @ApiModelProperty(value = "请假开始时间", required = true)
    @NotNull(message = "请假开始时间不能为空 13位时间戳")
   /* @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")*/
    private String leaveStartTime;

    @ApiModelProperty(value = "请假结束时间", required = true)
    @NotNull(message = "请假结束时间不能为空 13位时间戳")
   /* @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")*/
    private String leaveEndTime;

    @ApiModelProperty(value = "请假说明", required = true)
    private String leaveExplain;

    @ApiModelProperty(value = "请假用户类型")
    private Integer userType;


    @ApiModelProperty(value = "抄送人id", required = true)
    private String copySendId;


}
